- jQuery to latest 2.x version (let's avoid updating to 3.x and requiring either a complete refactor or using their migrate plugin. This said, if anyone is up to submitting a PR to do so, feel free :)
- clipboad lib
Use more modern package from hautelook/phpass, but keep 5.3-5.5 compat
Also, remove that test file. This should never have been included in the first place.
Pia Mancini [Tue, 18 Apr 2017 21:48:31 +0000 (17:48 -0400)]
Add backers and sponsors from Open Collective
Now your open collective backers and sponsors can to appear directly on your README.
see how it'll look [here](https://github.com/apex/apex#backers)
[More info](https://github.com/opencollective/opencollective/wiki/Github-banner)
Also add badges on top
We make a regexp from the charset, and used to specify that `-` was to be escaped but this has been fixed in PHP 5.2
We now escape `@`, which is also used as the regexp delimiter in yourls-loader.php, so now `@` can also be used in short URL charset
ozh [Sun, 5 Feb 2017 15:04:50 +0000 (16:04 +0100)]
Introduce yourls_sanitize_url_safe()
Remove anti CRLF checks from yourls_sanitize_url() and yourls_esc_url() because some legit URLs have %0A or %0D
We're just stripping those, using new function yourls_sanitize_url_safe(), for internal redirection when target location isn't hardcoded.
BestNa.me Labs [Tue, 29 Mar 2016 06:47:56 +0000 (08:47 +0200)]
Correcting title attr. of display_link
Correction in `edit_link_save`:
Plugging in `data.url.title` as (untrimmed) `title` attribute (instead of plugging in `data.url.url`) when setting the variable `display_link`.
BestNa.me Labs [Wed, 23 Mar 2016 19:59:18 +0000 (20:59 +0100)]
Remove an ineffective line of code
Removes an ineffective line of code in `edit_link_save()` with an undefined variable `data.url.date` (this is because `data.url.date` is not set in the function invoked via ajax, i.e. in `yourls_edit_link()` in functions.php).
BestNa.me Labs [Tue, 22 Mar 2016 19:09:38 +0000 (20:09 +0100)]
Re-enable actions only if edit-save succeeded
Fixes a flaw in `edit_link_save()` in insert.js:
On exit, `edit_link_save()` re-enables all buttons of the action column, regardless of the value of `status` as returned by the ajax call (`action=edit_save`), i.e. also if the `status` is `fail` which means that the edit row remains visible. Because of that, it is then possible to open another edit row for the same keyword/long URL row. It is even possible to repeat this, introducing an arbitrary number of open edit rows with the same content.
BestNa.me Labs [Mon, 21 Mar 2016 20:00:04 +0000 (21:00 +0100)]
Re-enable cancel on exiting edit_link_save()
Fixes a flaw in `edit_link_save()` in insert.js:
On exit, `edit_link_save()` correctly ends the loading state of the cancel button (i.e. the element with id `edit-close-y...`), but leaves the element disabled. This gets evident if and only if the ajax call (`action=edit_save`) returns with a `status` of `fail`, since only then the edit row with the disabled cancel button will not be faded out.
BestNa.me Labs [Thu, 10 Mar 2016 20:58:58 +0000 (21:58 +0100)]
Added `decrease_total_clicks( id )` + call
Added a function `decrease_total_clicks( id )` in js/insert.js which decreases the element containing the number of total clicks on the admin page by the value contained in the element `$('#clicks-' + id)` (i.e. by the value picked from the 'Clicks' column of the respective deleted row). Now called this method at the appropriate place in function `remove_link(id)`, thereby passing on `id` as parameter.
BestNa.me Labs [Thu, 10 Mar 2016 20:51:57 +0000 (21:51 +0100)]
Additional id for tag containing $total_clicks
Granted the `<strong>` tag containing the number of total clicks its own id (in admin/index.php) (the element should be prominent enough to deserve it).
BestNa.me Labs [Wed, 9 Mar 2016 21:24:48 +0000 (22:24 +0100)]
Go to First Page -> Go to Last Page
Fixes a minor glitch in yourls_html_tfooter() in functions-html.php:
In the pagination section of the URL table, the 'Go to Last Page'-link has a `title` attribute 'Go to First Page' (one can notice that by hovering it). Should of course be titled 'Go to Last Page'.